home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / WWIV Mods / WWIVMOD.ZIP / YOURINFO.MOD < prev   
Encoding:
Text File  |  1993-02-13  |  5.1 KB  |  137 lines

  1. Make Yourinfo Look Like This
  2. ``The Dragon Lord`` WWIVnet #1 AT 2575
  3. Wed Feb 10 19:58:59 1993
  4. ┌───────────────────────────────────────────────────────────────────────────┐
  5. │Mod Name: TDL05.MOD               Mod Author : The Dragon Lord             │
  6. │Difficulty:█▓▓▓▓▓▓▓               Date: 02-09-93                           │
  7. │WWIV Version: 4.22 should work with all below                              │
  8. │Files affected: BBSUTL.C                                                   │
  9. │Description: This MOD will improve and colorize the look of the your       │
  10. │             information screen so it looks something like below.          │
  11. └───────────────────────────────────────────────────────────────────────────┘
  12.  
  13. DISCLAMER: If anything goes wrong you didn't install this mod right.
  14.  
  15.  
  16.  
  17.            7USER NAME:      2The Dragon Lord #1
  18.  
  19.  
  20.            7Sec lev 3      255       7D\l sec lev 3          255
  21.            7Last on 3 01/31/93       7Phone #     3 ###-###-####
  22.            7Times on3       69       7Dataphone # 3 ###-###-####
  23.            7On today3        2       7Mess. posted    3      100
  24.            7Mins on today3  55       7E-mail sent     3      100
  25.            7Mail waiting 3   5
  26.  
  27.  
  28. STEP #1  : BACKUP YOUR SOURCE!!!!!
  29.        (ie. Pkzip -u wwivsrc *.c *.h *.mak)
  30.  
  31.  ╒══════════════════════╕
  32.  │        Legend        │
  33.  ╞══════════════════════╡
  34.  │  + Add Line          │
  35.  │  - Remove Line       │
  36.  │  = Existing line     │
  37.  ╘══════════════════════╛
  38.  
  39. /*****************************************************************************/
  40. /* STEP #2: File: BBSUTL.C         delete void yourinfo(void) & replace      */
  41. /*                                 with the following 3 voids                */
  42. /*****************************************************************************/
  43.  
  44. /********************************* BEGIN BLOCK *******************************/
  45.  
  46. void blank_space(int j)
  47. {
  48.   int i;
  49.  
  50.   for(i=0; i<j; i++)
  51.     npr(" ");
  52. }
  53.  
  54. void ansi_color(int i,int j)
  55. {
  56.   npr("%d;3%dm",i,j);
  57. }
  58.  
  59. void yourinfo(void)
  60. {
  61.   int i;
  62.  
  63.   outchr(12);
  64.   if (okansi()) {
  65.     blank_space(14); ansi_color(1,4); npr("USER NAME: ");
  66.     blank_space(5); ansi_color(1,1); npr("%s",nam(&thisuser,usernum));
  67.     nl();nl();nl();
  68.     blank_space(14); ansi_color(1,4); npr("Sec lev  ");
  69.     ansi_color(0,5); npr("%8d",thisuser.sl);
  70.     blank_space(7); ansi_color(1,4); npr("D\\l sec lev  ");
  71.     ansi_color(0,5); npr("%12d\r\n",thisuser.dsl);
  72.     if (actsl!=thisuser.sl) {
  73.       blank_space(14); ansi_color(1,4); npr("Temp. s\\l");
  74.       ansi_color(0,5); npr("%8d\r\n",actsl);
  75.     }
  76.     blank_space(14); ansi_color(1,4); npr("Last on  ");
  77.     ansi_color(0,5); npr("%8s",thisuser.laston);
  78.     blank_space(7); ansi_color(1,4); npr("Phone #");
  79.     blank_space(6); ansi_color(0,5); npr("%s\r\n",thisuser.phone);
  80.     blank_space(14); ansi_color(1,4); npr("Times on ");
  81.     ansi_color(0,5); npr("%8d",thisuser.logons);
  82.     blank_space(7); ansi_color(1,4); npr("Dataphone #  ");
  83.     ansi_color(0,5); npr("%s\r\n",thisuser.dataphone);
  84.     blank_space(14); ansi_color(1,4); npr("On today ");
  85.     ansi_color(0,5); npr("%8d",thisuser.ontoday);
  86.     blank_space(7); ansi_color(1,4); npr("Mess. posted ");
  87.     ansi_color(0,5); npr("%12d\r\n",thisuser.msgpost);
  88.     blank_space(14); ansi_color(1,4); npr("Mins on today");
  89.     ansi_color(0,5); npr("%4ld",(long)((thisuser.timeon+timer()-timeon)/60.0));
  90.     blank_space(7); ansi_color(1,4); npr("E-mail sent  ");
  91.     ansi_color(0,5); npr("%12d\r\n",
  92.          (thisuser.emailsent+thisuser.feedbacksent+thisuser.emailnet));
  93.     if (thisuser.waiting) {
  94.       blank_space(14); ansi_color(1,4); npr("Mail waiting");
  95.       ansi_color(0,5); npr("%5d",thisuser.waiting);
  96.     } else
  97.       npr("");
  98.     nl();nl();nl();nl();
  99.   } else {
  100.     outstr(get_string(602)); pl(nam(&thisuser,usernum));
  101.     outstr(get_string(603)); pl(thisuser.phone);
  102.     if (thisuser.waiting) {
  103.       outstr(get_string(365)); npr("%d\r\n",thisuser.waiting);
  104.     }
  105.     outstr(get_string(604)); npr("%d",thisuser.sl);
  106.  
  107.     if (actsl!=thisuser.sl) {
  108.       outstr(get_string(605));
  109.       npr("%d",actsl);
  110.       pl(")");
  111.     } else
  112.       nl();
  113.     outstr(get_string(606)); pln(thisuser.dsl);
  114.     outstr(get_string(366)); pl(thisuser.laston);
  115.     outstr(get_string(607)); pln(thisuser.logons);
  116.     outstr(get_string(608)); pln(thisuser.ontoday);
  117.     outstr(get_string(609)); pln(thisuser.msgpost);
  118.     outstr(get_string(610));
  119.       pln((thisuser.emailsent+thisuser.feedbacksent+thisuser.emailnet));
  120.     outstr(get_string(611)); npr("%ld",(long)
  121.       ((thisuser.timeon+timer()-timeon)/60.0));
  122.     pl(get_string(612));
  123.     nl();
  124.   }
  125. }
  126. /********************************** END BLOCK ********************************/
  127.  
  128. /*****************************************************************************/
  129. /* STEP #3: Compile!!!                                                       */
  130. /*****************************************************************************/
  131.  
  132. If there any questions I can be reached at:
  133.  
  134.        THÉ DRÆGÖÑ's DÉÑ            1-2=3* 6<< 7THÉ DRÆGÖÑ £ÖRD 6>> 3*2=1-0
  135.     (215)882-1415                     1Fantasy 6Warez 3Ink.0
  136.     WWIVNet 1@2575
  137.